//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.tm.chargecar.controller;

import com.tm.chargecar.conf.OperationLog;
import com.tm.chargecar.entity.DetaledEntity;
import com.tm.chargecar.vo.DetaledVo;
import com.tm.chargecar.enums.OperationTypeEnum;
import com.tm.chargecar.result.Result;
import com.tm.chargecar.service.DetaledService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping({"detaled"})
public class DetaledController {
    @Autowired
    private DetaledService detaledService;


    /**
     * 查询明细的方法
     * @param detaledVo
     * @return
     */
    @GetMapping({"queryDetaled"})
    @OperationLog(
        operationModule = "jack",
        operationType = OperationTypeEnum.QUERY,
        description = "查询账单明细信息"
    )
    public Result queryDetaled(DetaledVo detaledVo) {
        List<DetaledEntity> list = this.detaledService.queryDetaled(detaledVo);
        return Result.SUCCESS(list);
    }





}
